package com.woniu.register.service.impl;

import com.woniu.register.dto.DemurDTO;
import com.woniu.register.entity.DemurLogin;
import com.woniu.register.mapper.CheckMapper;
import com.woniu.register.mapper.DemurLoginMapper;
import com.woniu.register.mapper.ProposerMapper;
import com.woniu.register.service.DemurLoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author ：zhulongxing
 * @date ：Created in 2022/12/6 10:13
 * @description：
 * @modified By：
 * @version: $
 */
@Service
public class DemurLoginServiceImpl implements DemurLoginService {
    @Autowired
    DemurLoginMapper demurLoginMapper;
    @Autowired
    CheckMapper checkMapper;
    @Autowired
    ProposerMapper proposerMapper;
    public int deleteByPrimaryKey(Long id) {
        return 0;
    }

    public int insert(DemurLogin record) {
        return 0;
    }

    @Transactional
    public int insertSelective(DemurDTO record) {
        checkMapper.insertSelectiveThree(record);
        proposerMapper.insertSelectiveThree(record);
        return demurLoginMapper.insertSelective(record);
    }

    public DemurLogin selectByPrimaryKey(Long id) {
        return null;
    }

    public int updateByPrimaryKeySelective(DemurLogin record) {
        return demurLoginMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(DemurLogin record) {
        return 0;
    }
}
